import Http from '../Http'

const app = getApp()

/**
 * 基础服务类
 */
export default class BaseService {
  constructor() {
    // 路径信息
    // this.publicUrl = app.globalData.publicUrl;

    // 全局对象
    this.app = app

    // 网络请求
    this.get = Http.get.bind(Http)
    this.post = Http.post.bind(Http)
    this.delete = Http.delete.bind(Http)
    this.put = Http.put.bind(Http)
  }
}
